import Vue from 'vue'
import Router from 'vue-router'
import Content from "../components/Content";
import Main from "../components/Main";

//安装路由
Vue.use(Router)

//配置导出路由
export default new Router({
  routes: [
    {
      //路由路径
      path: '/content',
      //路由名称
      name: 'contend',
      //跳转到组件
      component:Content
    },
    {
      //路由路径
      path: '/main',
      //路由名称
      name: 'main',
      //跳转到组件
      component:Main
    }
  ]
})
